﻿@model FILSTARTUPS_CMS.Models.Forum

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Edit", "Forum", FormMethod.Post,new { @class = "form-stacked" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Forum</legend>

        @Html.HiddenFor(model => model.forumidPK)

        <div class="editor-label">
            @Html.LabelFor(model => model.forumtitle)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.forumtitle)
            @Html.ValidationMessageFor(model => model.forumtitle)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.forumdescription)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.forumdescription)
            @Html.ValidationMessageFor(model => model.forumdescription)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.routingidFK)
        </div>
        <div class="editor-field">
                 @Html.DropDownList("routingidFK", new SelectList(ViewData["routing"] as System.Collections.IEnumerable,
                                                    "routingidPK", "routingname"))
            @Html.ValidationMessageFor(model => model.routingidFK)
        </div>
        <br />
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
